class ResaveModelsAfterRemoveRedcloth < ActiveRecord::Migration
  def self.up
    # use built-in simple_format helper instead of redcloth, so re-save all models 
    # to generate content_html column
    Event.find(:all).each {|event| event.save!}
    EventComment.find(:all).each {|cmt| cmt.save!}
    Group.find(:all).each {|grp| grp.save!}
    PhotoComment.find(:all).each {|cmt| cmt.save!}
    Post.find(:all).each {|post| post.save!}
    SchoolComment.find(:all).each {|cmt| cmt.save!}
    Topic.find(:all).each {|topic| topic.save!}
  end

  def self.down
  end
end
